package com.springboot.springboot_demo02.controller;

import ch.qos.logback.classic.spi.EventArgUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
public class HelloTest {
    @RequestMapping("/json")
    public Map<String,Object> json(){
        List<String> list = new ArrayList<>();
         Map<String,Object> map =new HashMap<String,Object>();
         list.add("李四");
         list.add("张三");
         list.add("赵六");
         map.put("data",list);
         return map;

    }
}
